import Mock, { Random } from 'mockjs';

export default {
  'GET /api/gatData': (req: any, res: { send: (arg0: any) => void; }) => {
    res.send(
      Mock.mock({
        success: true,
        message: '',
        code: 0,
        'result|100': [{
          key: () => Random.id() + Random.guid(),
          name: () => Random.cname(),
          age: () => Random.natural(18, 100),
          address: () => Random.county(true),
        }]
      })
    )
  },
};